<?php

namespace app\api\validate;

use think\Validate;

class LoginValidate extends Validate
{
   
    
	protected $rule = [

        'username'=>'require',
        'password'=>'require',
    ];
    
    /**
     * 定义错误信息
     */	
    protected $message = [

        'require.username'=>'用户名不能为空',
        'require.password'=>'密码不能为空',
    ];
}
